package com.xiyuan.smartutils.logging;

/**
 * the description for class ConfigItem
 *
 * @author xiyuan-lgz 2022-10-22 @version v1.0.0 新建与整理
 */
public class ConfigItem {
    private String level;
    private String pattern;
    private Boolean console;
    private Boolean outFile;
    private String dir;
    private String fileName;
    private String encoding;
    private Long maxFileSize;
    private Integer keepDay;
    
    public ConfigItem() {
        this.level = "info";
        this.pattern = "%d{yyyy-MM-dd hh:mm:ss,SSS} %p %t %c.%m(%l) ";
        this.console = true;
        this.dir = "./logs";
        this.encoding = "UTF-8";
        this.maxFileSize = 0L;
        this.keepDay = 7;
    }
    
    public String getLevel() {
        return level;
    }
    
    public void setLevel(String level) {
        this.level = level;
    }
    
    public String getPattern() {
        return pattern;
    }
    
    public void setPattern(String pattern) {
        this.pattern = pattern;
    }
    
    public Boolean getConsole() {
        return console;
    }
    
    public void setConsole(Boolean console) {
        this.console = console;
    }
    
    public Boolean getOutFile() {
        return outFile;
    }
    
    public void setOutFile(Boolean outFile) {
        this.outFile = outFile;
    }
    
    public String getDir() {
        return dir;
    }
    
    public void setDir(String dir) {
        this.dir = dir;
    }
    
    public String getFileName() {
        return fileName;
    }
    
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
    
    public String getEncoding() {
        return encoding;
    }
    
    public void setEncoding(String encoding) {
        this.encoding = encoding;
    }
    
    public Long getMaxFileSize() {
        return maxFileSize;
    }
    
    public void setMaxFileSize(Long maxFileSize) {
        this.maxFileSize = maxFileSize;
    }
    
    public Integer getKeepDay() {
        return keepDay;
    }
    
    public void setKeepDay(Integer keepDay) {
        this.keepDay = keepDay;
    }
}
